{% extends "library/base/base_site.html" %}
{% load static %}
{% load custom_tags %}
{% load custom_filters %}
{% block title %} {{ title|default:"文档" }}详情 {% endblock title %}

{% block stylesheets %}
    {{ block.super }}
{% endblock stylesheets %}

{% block content %}
<div class="x_title">
    <h2>{{ title|default:"文档" }}详情 </h2>
    <ul class="nav navbar-right panel_toolbox">
        <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
        </li>
        {%  block detail_operate_panel %}
        {% if not readonly %}
        {% if data.id %}
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                <i class="fa fa-wrench"></i>
            </a>
            <ul class="dropdown-menu" role="menu">
                <li><a href="modify">修改</a>
                </li>
            </ul>
        </li>
        {% endif %}
        {% endif %}
        {% endblock detail_operate_panel %}
        <li>
            <a class="close-link"><i class="fa fa-close"></i></a>
        </li>
    </ul>
    <div class="clearfix"></div>
</div>
<div class="x_content">
    {% block detail_table_content_before %}
    {% endblock detail_table_content_before %}
    <ul class="list-unstyled timeline">
        {% block detail_table_content %}
        {% for field in fields %}
        <li class="row row-field">
            <div class="col-field col-field-detail col-lg-4 col-md-4 col-sm-6 col-xs-6">
                <a>
                    <strong>{% get_verbose_field_name data field.0 %}</strong>
                </a>
            </div>
            <div class="col-field col-field-detail col-lg-8 col-md-8 col-sm-6 col-xs-6">
                <a>
                    <span>{{field.1 |safe }}
                    </span>
                </a>
            </div>
        </li>
        {% endfor %}
        {% endblock detail_table_content %}
    </ul>
    {% block detail_table_content_after %}
    {% endblock detail_table_content_after %}
</div>
{% endblock content %}

{% block javascripts %}
    {{ block.super }}
{% endblock javascripts %}